package com.zjitc.mapper;


import com.zjitc.pojo.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 徐莹
 * @Date 2025 06 20 20 06
 **/

public interface ProductMapper {
    int insert(Product product);

    int deleteById(Integer id);

    int update(Product product);

    Product selectById(Integer id);

    List<Product> selectByKeywordPage(@Param("keyword") String keyword,
                             @Param("pageNum") Integer pageNum,
                             @Param("pageSize") Integer pageSize);

    int selectTotal(String keyword);
}
